Returns the ReadOnlyCollection<SequencingRollupConditionNodeReader> containing the <imsss:rollupCondition> nodes inside this <imsss:rollupRule>/<imsss:rollupConditions>.
Parent Type: SequencingRollupRuleNodeReader
Namespace: Microsoft.LearningComponents.Manifest
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public ReadOnlyCollection<SequencingRollupConditionNodeReader> Conditions { get; } |
| Exception type | Condition |
| InvalidPackageException | In |
The ReadOnlyCollection<SequencingRollupConditionNodeReader> returned from this method is not populated until properties or methods on it are accessed. This means that in ManifestReaderSettings.FixScormRequirementViolations=false, InvalidPackageException may be thrown if there are invalid <imsss:rollupCondition> nodes in the list (e.g. nodes containing illegal attribute values.)
In ManifestReaderSettings.FixScormRequirementViolations=true, warnings are added to the log and invalid <imsss:rollupCondition> nodes are ignored.
SCORM dictates there should always be exactly one <imsss:rollupConditions> node containing at least one <imsss:rollupCondition> node. However, it is possible this ReadOnlyCollection will contain zero nodes, if none exist in the manifest.
Iterate through all rollup conditions in the manifest's sequencing collection node.
| C# |
foreach(SequencingNodeReader sequencing in manifest.SequencingCollection.Values)
{
foreach (SequencingRollupRuleNodeReader rollupRule in sequencing.RollupRules)
{
foreach (SequencingRollupConditionNodeReader rollupCondition in rollupRule.Conditions)
{
// use the rollup condition reader
}
}
}
|